package com.zpark;

public class MonkeyChicken {
    public static void main(String[] args) {
        for (int x = 0; x <= 100; x++) {
            for (int y = 0; y <= 100 - x; y++) {
                int z = 100 - x - y;
                if (z % 3 == 0) {
                    if (5 * x + 3 * y + z / 3 == 100)
                        System.out.println("鸡翁 " + x + "只，鸡母 " + y + "只，鸡雏" + z + "只！");
                }
            }


        }
    }
}